$('#submit').on('click', function (e) {
  
})

$('#form').on('submit', function(e) {
  e.preventDefault()

  // let username = $('input[type=text]').val()
  // let password = $('input[type=password]').val()

  let data = $('#form').serialize()
  console.log(data)

  $.ajax({
    url: '/api/users/signup',
    type: 'post',
    'content-type': 'application/x-www-form-urlencoded',
    data,
    success(result) {
      console.log(result)
    }
  })
})